From 19d81b4e5d45211f6035b25618c0b74b1e5db424 Mon Sep 17 00:00:00 2001 From: aude Date: Wed, 28 Nov 2012 20:18:39 +0000 Subject: [PATCH] add function in ChangesList to getTimestamp without inserting it Change-Id: Iae28a6a36f3ab1de3c74cd9eba88793c85faa322 --- includes/ChangesList.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/includes/ChangesList.php b/includes/ChangesList.php index f8dbf3b02a..0bd16f7dc0 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -383,13 +383,20 @@ class ChangesList extends ContextSource { $s .= " $articlelink"; } + /** + * @param $rc RecentChange + */ + public function getTimestamp( $rc ) { + return $this->message['semicolon-separator'] . '' . + $this->getLanguage()->userTime( $rc->mAttribs['rc_timestamp'], $this->getUser() ) . ' . . '; + } + /** * @param $s * @param $rc RecentChange */ public function insertTimestamp( &$s, $rc ) { - $s .= $this->message['semicolon-separator'] . '' . - $this->getLanguage()->userTime( $rc->mAttribs['rc_timestamp'], $this->getUser() ) . ' . . '; + $s .= $this->getTimestamp( $rc ); } /** -- 2.20.1